//
//  XinxinTools.h
//  hong5
//
//  Created by 新新 on 2017/6/28.
//  Copyright © 2017年 com.hong5.ios. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface XinxinTools : NSObject
//去掉json里的//////
+ (id)toArrayOrNSDictionary:(NSString *)jsonData;
//获取父类控制器对象
+ (UIViewController *)superViewController:(id)view;
//播放次数处理
+ (NSString *)playNoStr:(NSInteger)playNo;

//传入label 计算高度
+ (float) heightForString:(UILabel *)label andWidth:(float)width;

//计算高度
+ (CGSize)calculateRowWidth:(NSString *)string font:(UIFont *)font width:(CGFloat)weight;

+ (UIImage *)QRCodeImageWithString:(NSString *)content size:(CGSize)imageSize;

@end
